
//统一管理所有的api
import request from "./request"


export const login=(params)=>request.post("/api/login",params);
export const examList=(params)=>request.get("/exam/list",{params});
export const GetOnlineExam=(params)=>request.get("/exam/onlineExam",{params});
export const GetQuestions=(params)=>request.get("/exam/questionManage",{params});
export const GetQuestion=(params)=>request.get("/question/getQuestion/"+params);
export const SetQuestion=(params)=>request.post("/question/set",params);
export const updateQuestion=(params)=>request.post("/question/update",params);
export const DeleteQuestion=(params)=>request.post("/question/delete",params);
export const GetUserList=(params)=>request.get("/admin/getUser",{params});
export const GetAddDeleteDisable=(params)=>request.get("/admin/handleUser",{params});
export const PostAddUser=(params)=>request.post("/admin/addUser",params);
export const accountInfo=(params)=>request.get("/api/broker/account/list",{params});
//修改头像
export const PostUpdateUserInfo=(params)=>request.post("/client/updateUser",params);

//get请求params需要解构{params},post不用
// export const GetAllTask =(params)=>request.get("/findAll",{params});
// export const GetAllTask =(params)=>request.post("/findAll",params);
